//
//  AutodyneDAO.h
//  MyShoes
//
//  Created by mac on 11-6-3.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@protocol InitNetPhoneDataDelegate <NSObject>
-(void)initNetPhoneDataProgress:(NSArray *)array;
@end

@interface NetPhoneDAO : NSObject {
}

+(NetPhoneDAO *) sharedInstance;

-(void)initNetPhoneData:(NSObject<InitNetPhoneDataDelegate> *)delegate;
-(NSArray *)loadContactByCode:(NSString *)code equals:(BOOL)isEquals;
-(void)insertCallRecrod:(NSString *)phoneNum name:(NSString *)name;

-(NSArray *)loadAllCallRecrod;
-(NSArray *)loadCallRecordWidthNumber:(NSString *)num name:(NSString *)name;

-(void)deleteAllCallRecord;
-(void)deleteCallRecrod:(NSString *)phoneNum name:(NSString *)name;

@end
